/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const EmployeeRouter = {
  path: '/employee',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Employee',
  meta: {
    title: '员工管理',
    icon: 'chart'
  },
  children: [
    {
      path: 'courier',
      component: () => import('@/views/EmployeeManagement/courier'),
      name: 'Courier',
      meta: { title: '快递员管理', noCache: true }
    },

    {
      path: 'driver',
      component: () => import('@/views/EmployeeManagement/driver'),
      name: 'driver',
      meta: { title: '司机管理', noCache: true }
    },
    {
      path: 'workforce',
      component: () => import('@/views/EmployeeManagement/workforce'),
      name: 'workforce',
      meta: { title: '排班管理', noCache: true }
    }

  ]
}

export default EmployeeRouter
